<?php
use Yaf\Controller_Abstract;
class ErrorController extends Controller_Abstract
{
    public function errorAction($exception): void
    {
        Log::$customFileName = LOG_PATH."/errors/";
        Log::error("code".$exception->getCode()." ".$exception->getMessage()." ".$exception->getLine()." ".
        $exception->getLine()." ".$exception->getTraceAsString());
    }
}
